package cn.me.fdfs.service;

import java.io.IOException;
import java.util.List;
import org.csource.common.MyException;
import com.jcraft.jsch.JSchException;
import cn.me.fdfs.vo.Fdfs_file;
import cn.me.fdfs.vo.Group;
import cn.me.fdfs.vo.GroupDay;
import cn.me.fdfs.vo.Line;
import cn.me.fdfs.vo.Storage;
import cn.me.fdfs.vo.StorageHour;

/**
 * Created with IntelliJ IDEA. User: devuser Date: 12-8-20 Time: 下午9:03 To change this template use
 * File | Settings | File Templates.
 */
public interface MonitorService {

  List<Group> listGroupInfo() throws IOException, MyException, JSchException;

  List<Group> listGroups() throws IOException, MyException;

  List<Storage> listStorage(String groupName) throws IOException, MyException;

  List<Storage> listStorageTop(String ipaddr) throws IOException, MyException;

  List<Line> listStorageLines(String groupName) throws IOException, MyException;

  List<Line> getNetTrafficLines(String ip, String start, String end);

  Line getListStoragesInfo(String ip, String startTime, String endTime) throws IOException, MyException;

  StorageHour getStorageByIp(String ip) throws IOException, MyException;

  List<Group> getAllGroups() throws IOException, MyException;

  List<Line> getListFileCountStorage(String ip, String startTime, String endTime) throws IOException, MyException;

  void saveFile(Fdfs_file f) throws IOException, MyException;

  List<GroupDay> getGroupsByName(String groupName) throws IOException, MyException;

}
